export default {
    install(Vue, router) {
        router.beforeEach((to, from, next) => {
            let auth = ["my"];
            if (!JSON.parse(localStorage.getItem('loggingStatus')) && auth.indexOf(to.name) != -1) {
                next({ name: "login" });
            }
            next();
        });
    },
};